package com.java.base.exercise.designmode.guanchazhe;

import java.util.Date;

/**
 * @Author RenPu
 * @Date 2021/12/16 11:59
 * @Version 1.0
 * @Description:
 **/
public class LotteryServiceImplV2 extends LotteryServiceV2 {

    MinibusTargetServiceV1 minibusTargetServiceV1 = new MinibusTargetServiceV1();


    @Override
    protected LotteryResult doDraw(String uId) {
        String lottery = minibusTargetServiceV1.lottery(uId);
        return new LotteryResult(uId,lottery,new Date());
    }
}
